package hn.cch.druid.query;

import java.io.Serializable;

/**
 * 数据库查询条件
 * @author CCH
 * @version 2018.08.31
 */
public class Condition implements Serializable {


    //操作符
    private Operator operator;

    private String key;
    private Object value;


    public Condition(Operator operator, String key, Object value) {
        this.operator = operator;
        this.key = key;
        this.value = value;
    }

    public Operator getOperator() {
        return operator;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

}
